#include <stdio.h>
#include <iostream>
using namespace std;

#include "defer.h"

void func1()
{
    printf("func1\n");
}

int main()
{

    cout << __COUNTER__ << endl;
    // defer(printf, "defer print abc\n");
    // defer(func1);
    simple_defer(printf("defer print abc\n"));
    simple_defer(func1());
}
